import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 *  TimeZoneTest.java
 *  Test TimeZone.java
 *  @author Arun Lee
 *  @author briceorbryce
 */
public class TimeZoneTest {

	private TimeZone tz1;
	private TimeZone tz2;
	private TimeZone tz3;
	private TimeZone tz4;
	private TimeZone tz5;
	
	@SuppressWarnings({ "javadoc", "unused" })
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {//
	}

	@SuppressWarnings({ "javadoc", "unused" })
	@AfterClass
	public static void tearDownAfterClass() throws Exception {//
	}

	@SuppressWarnings({ "javadoc" })
	@Before
	public void setUp() throws Exception {
			this.tz1 = new TimeZone("37.85", "-110.039");
			this.tz2 = new TimeZone("-27.059", "133.59");
			this.tz3 = new TimeZone("28.30", "110");
			this.tz4 = new TimeZone("49.38", "18.28");
			
	}

	@SuppressWarnings({ "javadoc", "unused" })
	@After
	public void tearDown() throws Exception {//
	}

	/**
	 * 
	 */
	@Test (expected = Exception.class)
	public void test() {
		assertTrue(this.tz1.getTimeZoneName().equals("Mountain Standard Time"));
		assertTrue(this.tz2.getTimeZoneName().equals("Australian Central Daylight"));
		assertTrue(this.tz3.getTimeZoneName().equals("China Standard Time"));
		assertTrue(this.tz4.getTimeZoneName().equals("Central European Standard"));
		this.tz5.getRawOffset();
	}

}
